package com.kk.visitor;

public class Client {
    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();

        Woman woman = new Woman();
        Man man = new Man();
        objectStructure.attach(woman);
        objectStructure.attach(man);
        objectStructure.attach(man);

        Success success = new Success();
        Fail fail = new Fail();

        objectStructure.display(success);
        System.out.println("\r");

        objectStructure.detach(man);

        objectStructure.display(fail);


    }
}
